<!doctype html>
<html class="no-js" lang="zxx">
<head th:include="/yyyh/include :: header"></head>
    <body>
	
		<!-- Preloader -->
        <div class="preloader">
            <div class="loader">
                <div class="loader-outter"></div>
                <div class="loader-inner"></div>

                <div class="indicator"> 
                    <svg width="16px" height="12px">
                        <polyline id="back" points="1 6 4 6 6 11 10 1 12 6 15 6"></polyline>
                        <polyline id="front" points="1 6 4 6 6 11 10 1 12 6 15 6"></polyline>
                    </svg>
                </div>
            </div>
        </div>
        <!-- End Preloader -->


		<!-- Header Area -->
		<header th:replace="/yyyh/include :: bodyHeader"></header>
		<!-- End Header Area -->
		
		<!-- Breadcrumbs -->
		<div class="breadcrumbs overlay">
			<div class="container">
				<div class="bread-inner">
					<div class="row">
						<div class="col-12">
							<h2>详情</h2>
							<ul class="bread-list">
								<li><a href="/yyyh">主页</a></li>
								<li><i class="icofont-simple-right"></i></li>
								<li class="active">详情</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- End Breadcrumbs -->
		
		
		<!-- Start Doctor Calendar Area -->
        <section class="doctor-calendar-area section">
            <div class="container">
                <div class="row">
					<div class="col-lg-12">
						<div class="section-title">
							<h2>医生信息</h2>
							<img src="/img/yyyh/head01.jpg" alt="#">
							<p th:text="${docName}">小明</p>
						</div>
					</div>
				</div>
                <div class="row">
					<div class="col-12">
						<div class="doctor-calendar-table table-responsive">
							<table class="table">
								<thead>
								<tr>
									<th>星期</th>
									<th th:style="${weekday == 1 ? 'color:red' : ''} ">周一</th>
									<th th:style="${weekday == 2 ? 'color:red' : ''} ">周二</th>
									<th th:style="${weekday == 3 ? 'color:red' : ''} ">周三</th>
									<th th:style="${weekday == 4 ? 'color:red' : ''} ">周四</th>
									<th th:style="${weekday == 5 ? 'color:red' : ''} ">周五</th>
									<th th:style="${weekday == 6 ? 'color:red' : ''} ">周六</th>
									<th th:style="${weekday == 7 ? 'color:red' : ''} ">周日</th>
								</tr>
								<tr>
									<th>日期</th>
									<th th:each="item:${nextWeekDate}" th:text="${item}"></th>
								</tr>
								</thead>

								<tbody>
								<tr>
									<td><span class="time">上午</span></td>
									<td th:each="item,index:${amLiveWorkdayList}" style="cursor: pointer" th:onclick="${item.state=='工作'?'reserve('+item.wid+','''+nextWeekDate[index.index]+''')':''}">
										<h3 th:text="${item.state}"></h3>
										<span>号源：<label th:text="${item.nsnum}" /></span>
									</td>
								</tr>

								<tr>
									<td><span class="time">下午</span></td>
									<td th:each="item,index:${pmLiveWorkdayList}" style="cursor: pointer" th:onclick="${item.state=='工作'?'reserve('+item.wid+','''+nextWeekDate[index.index]+''')':''}">
										<h3 th:text="${item.state}"></h3>
										<span>号源：<label th:text="${item.nsnum}" /></span>
									</td>
								</tr>

								</tbody>
							</table>
						</div>
					</div>
                </div>
            </div>
        </section>
        <!-- End Doctor Calendar Area -->
		
		<!-- Start Newsletter Area -->
		<section class="newsletter section">
			<div class="container">
				<div class="row ">
					<div class="col-lg-6  col-12">
						<!-- Start Newsletter Form -->
						<div class="subscribe-text ">
							<h6>介绍</h6>
							<p class="">医生的个人信息和排班信息</p>
						</div>
						<!-- End Newsletter Form -->
					</div>
				</div>
			</div>
		</section>
		<!-- /End Newsletter Area -->

		<div th:replace="/yyyh/include :: bodyFooter"></div>

		<script src="/js/plugins/layer/layer.js"></script>
	<script>
		function reserve(wid,date){
			layer.open({
				type:2,
				title:"预约号源",
				area : [ '800px', '520px' ],
				content:'/yygl/record/add?wid='+wid+'&visitdate='+date
			})
		}
	</script>
    </body>
</html>